package cn.app.android.sichuanxiaoke.com.xiaokeapp.activity;

import android.content.Intent;
import android.content.SharedPreferences;
import android.media.Image;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
import android.view.animation.ScaleAnimation;
import android.widget.ImageView;

import cn.app.android.sichuanxiaoke.com.xiaokeapp.R;

public class AppWelcomeActivity extends AppCompatActivity {
    ImageView welcomeImage;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_app_welcome);

        init();
    }


    private void init() {
        /*welcomeImage= (ImageView) findViewById(R.id.welcomeImage);
        Animation animation = new AlphaAnimation(0f,1f);
        Animation animation=new ScaleAnimation(0,2f,0,2f);
        animation.setDuration(3000);
        welcomeImage.startAnimation(animation);*/
        //获取该用户的登录信息
        /*SharedPreferences preferences = getSharedPreferences("", MODE_PRIVATE);
        SharedPreferences.Editor edit = preferences.edit();*/

        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                startActivity(new Intent(AppWelcomeActivity.this,UserLoginActivity.class));
                finish();
            }
        },2000);

    }
}
